require 'typedef'
require 'table'

os.execute("mkdir output")

use_java_types()

file_tag = ""
file_tags = {"Login", "Player", "Scene"}
messages_all = {}


for _, tag in ipairs(file_tags) do
	file_tag = tag

	bind("template/template_java.java", "../"..tag..".lua", "output/Msg"..tag..".java")

	table.insert(messages_all, messages)
end

messages = nil




bind("template/template_msg_CMD.java", "", "output/CMD.java")

os.execute("xcopy output\\*.* E:\\Simplay\\trunk\\.version\\src\\9-COMBINED /R /Y")
os.execute("rmdir /S /Q output")
